Repository navigation
Conversation
In the image, app/tests/ also holds the base image's tests. Running pytest on the whole directory collected commands_test.py, whose test_healthcheck runs the healthcheck again, without end. - Pass pytest only this repository's test files (by filename pattern) - Skip a nested run, guarded by COMPARE_EXPRESSIONS_HEALTHCHECK_RUNNING Fixes #292 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #292.
Problem
The Dockerfile copies this repo into
/app/app, and the base image already puts its own tests in/app/app/tests/(commands_test.py,handling_test.py,mued_*_test.py, …).evaluation_tests.pyranpytest.mainon the wholeapp/directory, so it collected those too. The base image'scommands_test.py::test_healthcheckcalls the healthcheck, which runs the suite again, without end.Changes (
app/evaluation_tests.py)evaluation*_test.py,example_test.py,*_evaluation_test.pyand*_preview_test.pyintests/. None of the base image's files match.COMPARE_EXPRESSIONS_HEALTHCHECK_RUNNINGis set while the suite runs, and the test skips if it's already set.Verification
I built the image locally (
podman build --platform linux/amd64; the base image has no arm64 build):commands.healthcheck()returnstests_passed: true, with no failures or errors (755 passed, 2 skipped, 1 xfailed).COMPARE_EXPRESSIONS_HEALTHCHECK_RUNNING=1, the healthcheck test skips.🤖 Generated with Claude Code